﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Piser.Core
{
    public interface IControl
    {
        String Content { get;set; }
        bool ValidContent();

        void ShowMessage(String ErrorMessage);
#region Regular
        Double MinLength { get;set; }
        Double MaxLendth { get; set; }
        String Regular { get;set; }
        bool Required { get;set; }
        Type ContentType { get;set; }
        bool IsEnabled { get;set; }

        String Message { get; }
        #endregion

        #region ErrorMessage
        String LengthMessage { get;set; }
        String RegularMessage { get;set; }
        String RequiredMessage { get;set; }
        String ContentTypeMessage { get;set; }
       #endregion 
    }
}
